package com.hanlink.dsp.ui.widget;

import android.content.Context;
import android.util.AttributeSet;

/**
 * Created by zhb on 2017/8/11.
 */

public class DegreeCheckBox extends androidx.appcompat.widget.AppCompatCheckBox {
    public DegreeCheckBox(Context context) {
        super(context);
    }

    public DegreeCheckBox(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public DegreeCheckBox(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void setChecked(boolean checked) {
        super.setChecked(checked);
        if (checked) {
            setText("180°");
        } else {
            setText("0°");
        }
    }
}
